	
	int cursorX = INGAME.VIEWPORT_X + INGAME.VIEWPORT_W / 2;
	int cursorY = INGAME.VIEWPORT_Y + INGAME.VIEWPORT_H / 2;

	public void UpdateCursor()
	{
		if(isKeyPressed(KEYS.KEY_LEFT) && cursorX - INGAME.SCROLLING_SPEED > INGAME.VIEWPORT_X)
		{
			cursorX -= INGAME.SCROLLING_SPEED;
		}
		
		if(isKeyPressed(KEYS.KEY_RIGHT) && (cursorX + INGAME.SCROLLING_SPEED) < boardImg.getWidth())
		{
			cursorX += INGAME.SCROLLING_SPEED;
		}
		
		if(isKeyPressed(KEYS.KEY_UP) && cursorY - INGAME.SCROLLING_SPEED > INGAME.VIEWPORT_Y)
		{
			cursorY -= INGAME.SCROLLING_SPEED;
		}
		
		if(isKeyPressed(KEYS.KEY_DOWN) && (cursorY + 3 - INGAME.VIEWPORT_Y + INGAME.SCROLLING_SPEED) < boardImg.getHeight())
		{
			cursorY += INGAME.SCROLLING_SPEED;
		}
	}
	
	public void drawCursor(int x, int y)
	{
		cGame_g.drawImage(cursorImg, x, y, 0);
	}
	
	public boolean cursorOverCountry(int countryId)
	{
		return ((cursorX > tegCountries[countryId].collisionRect[cCountry.RECT_X] && cursorX < tegCountries[countryId].collisionRect[cCountry.RECT_X] + tegCountries[countryId].collisionRect[cCountry.RECT_W]) && (cursorY > tegCountries[countryId].collisionRect[cCountry.RECT_Y] && cursorY < tegCountries[countryId].collisionRect[cCountry.RECT_Y] + tegCountries[countryId].collisionRect[cCountry.RECT_H]));
	}
	
	public void detectCountry(int round_type)
	{
		for(int i = 0; i < COUNTRY_INFO.TOTAL_COUNTRIES; i++)
		{
			if(cursorOverCountry(i))
			{
				switch(round_type)
				{
					case INGAME.ROUND_TYPE_PUT_ARMIES:
					
						if(tegCountries[i].owner == cPlayer.turn && cCountry.selectedCountry == cCountry.NONE_SELECTED)
						{
							cCountry.selectedCountry = i;
						}
						else
						{
							cCountry.selectedCountry = cCountry.NONE_SELECTED;
						}
						
					break;
					
					case INGAME.ROUND_TYPE_ATTACK:
												
						if(cCountry.selectedCountry == cCountry.NONE_SELECTED)
						{
							cCountry.selectedCountry = i;
						}
						else if(cCountry.defendingCountry == cCountry.NONE_SELECTED && tegCountries[i].limitsWith(cCountry.selectedCountry))
						{
							cCountry.defendingCountry = i;
						}
						else
						{
							cCountry.selectedCountry = cCountry.NONE_SELECTED;
							cCountry.defendingCountry = cCountry.NONE_SELECTED;
						}
						
					break;
				}
				
				break;
			}
		}
	}